package stack;

public class LinkedStackTest {
    public static void main(String[] args) {
        LinkedStack<String> stack = new LinkedStack<>();
        stack.push("hello");
        stack.push("word");
        stack.push("java");
        stack.push("123456");
        stack.push("654321");
        System.out.println(stack.peek());
        stack.pop();
        System.out.println(stack.peek());
    }
}
